package com.fetch;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import com.dstats.Constants;
import com.entities.MatchDetailed;

public class FetchMatchsDetails extends Fetch{

	private String match;
	public FetchMatchsDetails(String matchId){
		this.match = matchId;
	}
	@Override
	protected List<NameValuePair> getParams() {
		List<NameValuePair> params = new ArrayList<NameValuePair>();
		params.add(new BasicNameValuePair(Constants.KEY, Constants.apiKey));
		params.add(new BasicNameValuePair(MatchDetailed.TAG_MATCH_ID, match));
		return params;
	}

	@Override
	protected String getUrl() {
		return "https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/";
	}

}
